package com.kgc.jy91.springboot1.autoConfiguration;

import org.springframework.stereotype.Component;

/**
 * @program: springboot1
 * @description
 * @author: wanggang
 * @create: 2020-12-16 15:59
 **/
//核心事件类
@Component
public class SayHello {
    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String sayHello(){

        return  "hello"+msg;
    }
}
